package com.weic.test01.vo;

public class Son {
    private String name;

    public Son() {
        System.out.println("son constructor ");
    }

    public void initMethod(){
        System.out.println("init son ... ");
    }

    public void destroySon(){
        System.out.println("destroyed son !!!");
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("son setName  ");
        this.name = name;
    }

    @Override
    public String toString() {
        return "Son{" +
                "name='" + name + '\'' +
                '}';
    }
}
